<?php

/**
 * Base presenter for all application presenters.
 */
abstract class BasePresenter extends NPresenter
{
    /**
     *
     * @var NConnection;
     */
    protected $db;
    
    protected function startup() {
        parent::startup();
        
        $this->db = $this->context->nette->database->default;
    }

}
